package com.andryu.opengl.view

import android.annotation.SuppressLint
import android.content.Context
import android.opengl.GLSurfaceView

@SuppressLint("ViewConstructor")
class OpenGLSurfaceView(context: Context, renderer: Renderer) : GLSurfaceView(context) {
    init {
        //设置上下本版本
        setEGLContextClientVersion(2)

        setRenderer(renderer)
        //设置渲染模式
        renderMode = RENDERMODE_CONTINUOUSLY
    }
}